package com.cs.study.homework._0315;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Random;

public class Demo4 {
    public static void main(String[] args) {
        Collection<Integer> collection = new ArrayList<>();
        Random random = new Random();
        for (int i = 0; i < 6; i++) {
            int red = random.nextInt(33) + 1;
            collection.add(red);
        }
        System.out.println("红色球号码： " + collection);


        int blue = random.nextInt(16) + 1;
        collection.add(blue);
        System.out.println("蓝色球号码： " + blue);



    }
}




